package com.ljj;

import java.util.List;


public class Main {

    public static void main(String[] args) throws Exception {
        String path = XmlUtils.class.getResource("/").getFile();
        System.out.println(path + "a.xml");
        Value x = XmlUtils.getValue(path + "a.xml");

        List<Value> res1 = x.getValues("a").get();
        System.out.println(res1.toString());
        System.out.println(res1.get(0).getValues("b").get().get(0).getValues("c").get().get(0).getTxtValue());

        String text = ValueUtils.getTxtValue(x, "a.b.d");
        System.out.println(text);
        Value v = ValueUtils.getValue(x, "a.b.c");
        System.out.println(v);
        Value v1 = ValueUtils.getValue(x, "a.b.d");
        System.out.println(v1.getValue("v"));

    }


}
